<?php
// 连接到数据库
$host = 'localhost';
$username = 'yinuo';
$password = 'rXcG3PnSBbz33b77';
$dbname = 'yinuo';
$port = '3306';
$link = @mysqli_connect($host, $username, $password, $dbname, $port); // 连接到数据库
// 连接到数据库
if (!$link) {
    die("Connection failed: " . mysqli_connect_error());
}

$sq = "select * from store_device where sn='20250401122738'";
$se = mysqli_query($link, $sq);
if ($se) {
    if (mysqli_num_rows($se) > 0) {
        while ($re = mysqli_fetch_assoc($se)) {
            print_r($re);
        }
    }
}